﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="CX_Collert_Show_State0.aspx.cs" Inherits="aspnet_admin_bock_collect_CX_Collert_Show_State0" Title="显示没有入库的东东" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<!--loading 代码-->
<div id="LoadingDiv" style="display:none;">
      <div>
        <div  style="color: #FFFF00; text-align:center;">
        <img src="~/aspnet/admin/images/loading.gif" alt="正在处理 请稍等......" width="18" height="18" align="middle" id="IMG1" runat="server" /> <span class="STYLE5">
            正在处理 请稍等......</span></div>
            <div style="text-align:center;">数据比较多时,请您耐心等待..... </div>
      </div>

    </div>
<!--loading 结束-->
       &nbsp;<table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr>
            <td align="center" class="topbg" colspan="2" style="height: 30px">
                <strong>采集管理</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="width: 223px; height: 27px">
                提示信息:</td>
            <td class="tdbg" style="width: 787px; height: 27px">
                <asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label></td>
        </tr>
           <tr>
               <td class="tdbg" style="width: 223px; height: 27px">
                   操作<asp:HiddenField ID="HiddenField1" runat="server" />
               </td>
               <td class="tdbg" style="width: 787px; height: 27px">
                   <asp:LinkButton ID="LinkButton2" runat="server" CssClass="link1" OnClick="LinkButton2_Click">加入所有文章</asp:LinkButton></td>
           </tr>
    </table>
    &nbsp;<br />
    <asp:GridView id="GridView1"
    OnRowDataBound="GridView1_RowDataBound"
     runat="server" CssClass="border" PageSize="200" CellPadding="3" EmptyDataText="没有数据请添加" Width="100%" AutoGenerateColumns="False" DataKeyNames="CX_Collect_id" AllowPaging="True" OnPageIndexChanging="a11" 
 ><Columns>
        <asp:BoundField DataField="CX_Collect_id" HeaderText="采集内容编号" InsertVisible="False"
            ReadOnly="True" SortExpression="CX_Collect_id" >
            <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
        <asp:BoundField DataField="CX_Collect_Name" HeaderText="文章名" SortExpression="CX_Collect_Name" >
                    <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
        
     <asp:BoundField HeaderText="采集时间" DataField="CX_Collect_Time" SortExpression="CX_Collect_Time" >
                         <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
     <asp:TemplateField HeaderText="新闻分类" SortExpression="CX_NEWS_Class_id">
         <EditItemTemplate>
             <asp:TextBox ID="TextBox2" runat="server" Text='<%# GetColumn(Eval("CX_NEWS_Class_id").ToString()) %>'></asp:TextBox>
         </EditItemTemplate>
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             <asp:Label ID="Label1" runat="server" Text='<%# GetColumn(Eval("CX_NEWS_Class_id").ToString()) %>'></asp:Label>
             <input id="File1" type="hidden" name="File1" value="<%#Eval("CX_Collect_id") %>" />
         </ItemTemplate>
         
         
     </asp:TemplateField>

     
     <asp:TemplateField HeaderText="采集页面" AccessibleHeaderText="CX_Collect_FormURL" SortExpression="CX_Collect_FormURL">
         <EditItemTemplate>
             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
         </EditItemTemplate> 
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
           <a href="<%#Eval("CX_Collect_FormURL")%>" target="_blank" class="link2"><%#Eval("CX_Collect_FormURL")%></a>
         </ItemTemplate>
     </asp:TemplateField>
     <asp:TemplateField HeaderText="操作" ShowHeader="False">
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             <asp:LinkButton ID="KeyWord_edit" runat="server" OnClick="KeyWord_edit_Click" CommandArgument='<%#Eval("CX_Collect_id") %>'>添加到新闻<%# GetColumn(Eval("CX_NEWS_Class_id").ToString()) %> </asp:LinkButton>
             &nbsp;&nbsp; &nbsp;
             
             
             <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%#Eval("CX_Collect_id") %>' OnClick="delcc"
                 Text="删除"></asp:LinkButton>
                 
              
         </ItemTemplate>
     </asp:TemplateField>
</Columns>

<PagerStyle CssClass="tdbg" HorizontalAlign="Center" Font-Size="9pt" Font-Underline="False"></PagerStyle>
</asp:GridView>
  <script language="javascript" type="text/javascript">
  
  function allid()
  {
     var objextx  = document.getElementsByName("File1");
     var idtt ="";
     
     for(i=0;i<objextx.length;i++)
     {
        idtt+=objextx.item(i).value+",";
     }
     
     if(idtt.indexOf(",")!=-1)
     {
        idtt =    idtt.substring(0,idtt.length-1);//得到 " , "
       document.getElementById("<%=HiddenField1.ClientID %>").value=idtt;
     }
     switchBar('');
     switchBar('');

  }
  
  allid();
  
  
  </script>
</asp:Content>

